﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>比较运算符和赋值运算符的区别</title>
</head>
<body>
    <script language="JavaScript" type="text/javaScript">
        let param;
        param = 15;
        let test1 = (param == 15);
        let test2 = (param = 15);
        document.write("执行语句 test1=(param==15)后的结果为：" + test1 + "<br>");
        document.write("执行语句 test2=(param=15)后的结果为：" + test2);
    </script>
</body>
</html>